import request from '@/utils/request'

// 查询租赁单据类别列表
export function listDocumentCategory(query) {
  return request({
    url: '/basic/documentCategory/list',
    method: 'get',
    params: query
  })
}

// 查询租赁单据类别详细
export function getDocumentCategory(documentCategory) {
  return request({
    url: '/basic/documentCategory/' + documentCategory,
    method: 'get'
  })
}

// 新增租赁单据类别
export function addDocumentCategory(data) {
  return request({
    url: '/basic/documentCategory',
    method: 'post',
    data: data
  })
}

// 修改租赁单据类别
export function updateDocumentCategory(data) {
  return request({
    url: '/basic/documentCategory',
    method: 'put',
    data: data
  })
}

// 删除租赁单据类别
export function delDocumentCategory(documentCategory) {
  return request({
    url: '/basic/documentCategory/' + documentCategory,
    method: 'delete'
  })
}
